home *** CD-ROM | disk | FTP | other *** search
/ MacWorld 1999 January - Disc 2 / Macworld (1999-01) (Disk 2).dmg / Serious Demos / Symbolic Composer 4.2 / Environment / System / DEF / Midi / Setups / def-controller-set next >
Text File  |  1998-10-23  |  778b  |  30 lines

  1. def-controller-set set <groups/controllers/midicodes>
  2.  
  3. Defines a controller-set set that consists of controllers and their corresponding MIDI codes. The following defines a controller-set with groups of general, reset and volume each having several controllers. This controller-set can be browsed from the menus.
  4.  
  5. (def-controller-set controller-set
  6.    group general
  7.       Modulation-wheel 1
  8.       Expression 11
  9.       Sustain 64
  10.    group reset
  11.       Reset-All 121
  12.       Notes-off 123
  13.    group volume
  14.       Main-volume 7
  15.       Panning 10
  16. )
  17.  
  18. Use controller-set within def-controller:
  19.  
  20. (def-controller controller-set
  21.    (piano 
  22.       main-volume '((1) (2 3))
  23.       modulation-wheel '((4) (5 6))
  24.    )
  25.    (sax
  26.       main-volume '((4) (5 6))
  27.       modulation-wheel '((1) (2 3))
  28.    )
  29. )
  30.